package com.base.date;


import java.util.Calendar;
import java.util.Date;

/**
 * 日期类操作
 */
public class DateOperate {

    public void getTimeAfterSixeMonth() {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date());
        calendar.add(Calendar.MONTH, 6);
        System.out.println(calendar.getTime());
    }
}
